package com.bootdo.crm.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.bootdo.crm.dao.ProductCategoryDao;
import com.bootdo.crm.domain.ProductCategoryDO;
import com.bootdo.crm.service.ProductCategoryService;



@Service
public class ProductCategoryServiceImpl implements ProductCategoryService {
	@Autowired
	private ProductCategoryDao productCategoryDao;
	
	@Override
	public ProductCategoryDO get(Integer categoryId){
		return productCategoryDao.get(categoryId);
	}
	
	@Override
	public List<ProductCategoryDO> list(Map<String, Object> map){
		return productCategoryDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return productCategoryDao.count(map);
	}
	
	@Override
	public int save(ProductCategoryDO productCategory){
		return productCategoryDao.save(productCategory);
	}
	
	@Override
	public int update(ProductCategoryDO productCategory){
		return productCategoryDao.update(productCategory);
	}
	
	@Override
	public int remove(Integer categoryId){
		return productCategoryDao.remove(categoryId);
	}
	
	@Override
	public int batchRemove(Integer[] categoryIds){
		return productCategoryDao.batchRemove(categoryIds);
	}
	
}
